<script>
import Vue from "vue";
import {defineComponent} from 'vue'
const data = {
    str:"你现在过的好不好！"
}
export default defineComponent({
    name: "App",
    data(){
        return data;
    },
    mounted(){
        // console.log("组件挂载完毕之后执行",this);
        // console.log(this.__proto__.__proto__ === Vue.prototype);
        // console.log(this.str);
        console.log(this.str);
    }
})
</script>

<template>
    <div>
        <h3>App:{{str}}|{{$userName}}|{{$data.str}}|{{this.$data.str}}</h3>
        <input type="text" v-model="str">
        <button @click="str+=1">点我</button>
    </div>
</template>

<style scoped>

</style>